/*********************************************************************************************************
Class Name: NMROpenAdsellOpptyAccount
* Author: Accenture 
* Date: 20-Apr-2012  
* Requirement/Project Name: NMR 
* Description: Constructor for NMRAdSellLaunchAccount, and NMRAdSellLaunchOpportunity.
* Version: 0.1 Updated to pick application Id from custom settings
*********************************************************************************************************/

public class NMROpenAdsellOpptyAccount{
   
    public string applId{get; set;}
    private AppEndPoints__c endPoint = AppEndPoints__c.getInstance();
    
    /**
    * Retrieves the AdSell Env from the Custom Settings.
    */   
    public NMROpenAdsellOpptyAccount(ApexPages.StandardController controller) {

        applId = endPoint.AdSell_Env__c;
         
    }

    //Test Method
    @isTest(SeeAllData=true)    
    static void NMROpenAdsellTest() {
        
        test.startTest();
   
        Account singleAccount = new Account(Name = 'Test Account',recordtypeid=RecordTypeHelper.GetRecordTypeID('Account', 'CSS Customer'),phone='9992995645', CSS_CustomerID__c = '12334567');
        insert singleAccount;
 
        ApexPages.StandardController sc = new ApexPages.standardController(singleAccount);        
        NMROpenAdsellOpptyAccount instance = new NMROpenAdsellOpptyAccount(sc);

        test.stopTest();
    }
}